home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / trap13.arc / ROM13.ASM < prev    next >
Assembly Source File  |  1988-04-09  |  1KB  |  39 lines

  1. name    rom13
  2. page    63,110
  3.  
  4. CODE    segment
  5.         assume  CS:CODE
  6.  
  7. rom13   proc    near
  8.         org     100h                ; .COM file
  9.  
  10. intoff  equ     (13h*4)+0             ; addr of BIOS vector
  11. intseg  equ     (13h*4)+2             ;
  12.  
  13. start:  push    ds                  ; save DOS return word
  14.         xor     ax,ax               ; clear out ax
  15.         push    ax                  ; for return
  16.         push    ax                  ; and to zero ES
  17.         pop     es
  18.  
  19.         cli                         ; no interrupts while
  20.  
  21.         mov     word ptr es:[intoff],0EC59H       ; storing
  22.         mov     word ptr es:[intseg],0F000H       ;  vectors
  23.  
  24.         sti                         ; interrupts Again
  25.  
  26.         mov     dx,offset ourmsg    ; our msg
  27.         mov     ah,9                ; output string
  28.         int     21h                 ; display
  29.  
  30.         int     20h                 ; go home
  31.  
  32. rom13   endp
  33.  
  34. ourmsg: db      'INT 13H Vector reset to ROM BIOS - F000:EC59'
  35.         db      '$'
  36.  
  37. CODE    ends
  38.         end     start
  39.